alecf@netscape.com
a0c3cc8d4b
fix for bug 177318 - use pldhash for inner hashtable entries to dramatically reduce allocations
...
r=dougt/sr=brendan
I am watching to see how the performance number change and will back out if the results are nasty
2002-11-16 02:33:49 +00:00
alecf@netscape.com
3526ba22e3
take two at fixing bug 177401 - convert nsIBinaryStream over to using nsAString/nsACString for string values, to speed up fastload
...
sr=darin, r=dougt
(the previous checkin had a typo which disabled fastload entirely!)
2002-11-14 18:16:31 +00:00
alecf@netscape.com
2c98274d76
argh, back out my last checkin because Ts went UP not down!
2002-11-09 01:31:32 +00:00
alecf@netscape.com
7f928a0114
fix for bug 177401 - use nsAString& classes instead of wstring in nsIBinaryInputStream, to speed up fastload startup
...
sr=darin, r=dougt
2002-11-08 23:30:53 +00:00
ccarlen@netscape.com
4a496fdca5
Bug 149785 - nsHashTable hides important functionality of PLHashTable. r=brendan@mozilla.org/sr=alecf/a=brendan
2002-07-29 22:48:15 +00:00
dougt@netscape.com
00d8c29c64
Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756
2002-05-15 18:55:21 +00:00
badami@netscape.com
4df73f0ce0
Leaking nsCStringKey objects
...
bug 73308 r=valeski sr=shaver a=brendan patch=tmutreja@netscape.com
2002-03-01 09:28:55 +00:00
cathleen@netscape.com
c63437dfa3
eliminate nsCRT::strlen for char* strings (part 5), bug 124536 r=dp sr=brendan
2002-02-20 06:38:38 +00:00
cathleen@netscape.com
d40cfa308f
eliminate nsCRT::memcmp and all callers to use memcmp instead, bug 118135 r=dp sr=brendan
2002-01-29 21:30:32 +00:00
cathleen@netscape.com
73e0bc3ed7
converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp
2002-01-12 03:18:55 +00:00
alecf@netscape.com
69d32458ce
augh, didn't mean to check these in
2001-12-02 23:17:11 +00:00
alecf@netscape.com
589995dd38
ok, back out my ToLowerCase() change, it didn't make any difference
2001-12-02 23:15:31 +00:00
alecf@netscape.com
5ff2342be0
ack! back these out, weren't meant to land
2001-11-27 23:53:18 +00:00
alecf@netscape.com
b76c3a5bb6
debug stuff only - adding MOZ_COUNT_DTOR/CTOR and changing DEBUG to DEBUG_dougt
...
(last part r=dougt)
2001-11-27 23:52:05 +00:00
dp@netscape.com
a83e7bcdd0
bug# 105509 inlining nsHashKey::nsHashKey
...
r=dougt, sr=jband
2001-11-02 04:58:30 +00:00
brendan@mozilla.org
aaf0acbeb3
Fix ownership initializer merge botch (93079, dbaron's patch, sr=shaver, r=me).
2001-08-01 22:34:42 +00:00
brendan@mozilla.org
1ba814d7b6
FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver.
2001-07-31 19:05:34 +00:00
dbaron@fas.harvard.edu
3d2d67a71a
Make ns[C]StringKey cooperate better with new string classes (although it doesn't participate in sharing). When created (non-cloned) from a flat string it will be dependent (as it was when created from ns[C]String), but it will copy non-flat strings. b=88411 r=jaggernaut sr=waterson (Complete comment for previous checkin.)
2001-06-29 23:09:38 +00:00
dbaron@fas.harvard.edu
519544fb64
Make ns[C]StringKey cooperate better with new string classes (although it doesn't participate in sharing). When created (non-cloned) from a flat string it will be dependent (as it was when created from ns[C]String), but it will copy non-flat strings.
2001-06-29 23:08:23 +00:00
scc@mozilla.org
4e56e9386c
landing string branch; see bug #73786
2001-04-02 19:40:52 +00:00
disttsc@bart.nl
e9399ed474
Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc
2001-03-02 09:26:57 +00:00
dbaron@fas.harvard.edu
15267f2b5c
Remove trailing semicolons after all uses of MOZ_DECL_CTOR_COUNTER to quiet build warnings on Mac. b=60415 a=brendan@mozilla.org
2001-01-27 23:06:33 +00:00
scc@mozilla.org
3922635dbb
if you want a pointer to the characters, you're going to have to |.get()| it
2000-09-13 02:56:52 +00:00
valeski@netscape.com
235a1452ae
32185. r=wan-teh. Fixing hashtable enumeration lossage.
2000-09-01 19:11:24 +00:00
jst@netscape.com
3ba32f670e
DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
2000-08-23 17:27:06 +00:00
warren@netscape.com
518d99c551
Added back in nsOpaqueKey, used in nsMemCache. Went back to 37 as the magic number (prime).
2000-08-21 02:37:20 +00:00
warren@netscape.com
faab19500d
Fix for hash code performance problem discovered by bienvenu. 'Sampling' hash code was statistically evil.
2000-08-20 21:29:10 +00:00
warren@netscape.com
8c6c3d1824
Changes to allow uncopied string keys. Changes to copy string key's null byte. code=jband, r=warren
2000-08-16 00:32:59 +00:00
jband@netscape.com
7bb6b59140
Pass the buffer length in bytes to nsCRT::memcmp. a=warren
2000-08-11 23:46:09 +00:00
warren@netscape.com
bc62fc2eda
Fixed warnings.
2000-08-10 07:05:13 +00:00
warren@netscape.com
8df9a9bce0
Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
2000-08-10 06:19:37 +00:00
dbaron@fas.harvard.edu
250ef5274e
Change MOZ_DECL_CTOR_COUNTERs that I added to use ;, as all others do. r=waterson@netscape.com
2000-06-15 02:20:30 +00:00
inaky.gonzalez@intel.com
0d7bc5437b
Fixed nsSupportsHashtable behaviour and API to fix leaks in
...
nsDirectoryService. Fixes bugs #38606 and #39859 .
a=waterson; r=rayw,brendan,warren
2000-06-06 22:06:56 +00:00
dbaron@fas.harvard.edu
70e93f3977
Count some classes for the leak stats. r=warren@netscape.com
2000-05-15 13:10:18 +00:00
rayw@netscape.com
3579bd6273
Per bug 3690:
...
Added new functions to the registry for reading / writing byte arrays
of binary content and escaping registry keys that contain binary
content. Modified code which reads/writes location of dll or javascript
for components to use new ReadBytesUTF8/WriteBytesUTF8 and which uses
or reads the keys to use EscapeKey and UnescapeKey.
r=dveditz
2000-05-12 01:24:36 +00:00
mkaply@us.ibm.com
25cfcb8e6a
# 34082
...
r= dougt@netscape.com
OS/2 bring up continues - Adding PR_CALLBACKs for VisualAge Compiler
2000-05-02 22:38:04 +00:00
scc@netscape.com
0cbd1727d3
making string conversions explicit
2000-04-01 00:39:02 +00:00
rickg@netscape.com
68a909efcd
landing phase 2 to remove deprecated string calls
2000-03-12 11:10:07 +00:00
dp@netscape.com
321efd1973
Using NS_REINTERPERT_CAST instead of NS_STATIC_CAST r=scc@netscape.com
1999-11-20 07:15:23 +00:00
warren@netscape.com
a5f8b6bb56
Added nsStr (nsString, nsString2) code for counting strings that have been seen. r=rickg
1999-11-20 04:22:26 +00:00
fur@netscape.com
14aa24df0b
In support of bug #8305 (Cache implementation), added new type of hash-table
...
key, an array of opaque data, not owned by the key. r: dougt
1999-11-16 03:10:54 +00:00
sfraser@netscape.com
a1067e7801
Part of fix for 18315 -- allow nsSupportsHashTable to contain null entries, which meant changing NS_{ADDREF,RELEASE} to NS_IF_{ADDREF,RELEASE} in a bunch of places. r=pavlov.
1999-11-11 20:41:54 +00:00
dmose@mozilla.org
20621227af
updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
1999-11-06 03:43:54 +00:00
shaver@netscape.com
9404d98db8
Make nsSupportsHashtable not crash when you try to Get or Remove an item
...
not in the table already.
1999-09-02 07:01:53 +00:00
jband@netscape.com
4e3c9aeea9
adding enumeration of CLSIDs and ProgIDs using code from Robert Ginda <rginda@ix.netcom.com>
1999-08-09 05:02:25 +00:00
dp@netscape.com
c7d1a601a4
Adding RemoveAndDelete() to nsObjectHashtable
1999-08-02 23:55:03 +00:00
dp@netscape.com
0b3a3398a8
Getting nsHashtable and nsObjectHashtable Reset()s working together.
1999-07-31 05:50:13 +00:00
dp@netscape.com
adca1336cd
Adding nsHashtable::Reset(). Changing nsObjectHashtable destructor to use Reset instead of enumerate. This will cause hash entires to be removed from the hash table as values in the hash table are released.
1999-07-31 05:41:54 +00:00
warren@netscape.com
b69bad6df9
Added nsObjectHashtable (for automatically copying and destroying elements). Also nsSupportsHashtable for refcounted elements.
1999-07-28 07:56:28 +00:00
tbogard@aol.net
2dec048eb4
Changed hashing to not hash every letter of strings that are greater than 16 characters in length.
1999-07-23 05:19:33 +00:00