This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: RFC: String sharing heuristic


Tom Tromey wrote:

Please comment on this.

Christopher Lansdown showed me an example program that unexpectedly
used a lot of memory (as compared to running on jamvm). Analysis
showed that he was using substring(), which was keeping the entire
contents of his 300M log file live -- whereas the heuristic in
Classpath's substring() avoided this.


I filed a PR on this so we don't forget it:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21753

Bryce


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]