This website requires JavaScript.
Explore
Help
Sign In
Bommels05
/
Mozilla
Watch
1
Star
0
Fork
0
You've already forked Mozilla
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Mozilla
/
mozilla
/
string
History
scc%mozilla.org
330107a3e1
reduce bloat by not chunk-allocating strings (in |nsStr::Alloc|). Clients that don't benefit from this can explicitly call |SetCapacity|. We may re-introduce this functionality in the append of a single character when no space remains, if it turns out to be a problem. This optimization was suggested by profiling done by sfraser, who now promises to find out where it hurts us.
...
git-svn-id: svn://10.0.0.236/trunk@72019 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-12 02:54:22 +00:00
..
obsolete
reduce bloat by not chunk-allocating strings (in |nsStr::Alloc|). Clients that don't benefit from this can explicitly call |SetCapacity|. We may re-introduce this functionality in the append of a single character when no space remains, if it turns out to be a problem. This optimization was suggested by profiling done by sfraser, who now promises to find out where it hurts us.
2000-06-12 02:54:22 +00:00
public
In an assignment, |SetLength(0); SetLength(newLength);| so that the implementation won't bother to copy any old characters if allocation is required. Fiddled with inlining to reduce bloat ... more experiments needed.
2000-06-11 01:02:12 +00:00