search for: pooledstringptr

Displaying 1 result from an estimated 1 matches for "pooledstringptr".

2007 Nov 30
0
[LLVMdev] GC patches again
...ring interning facility. Will be used by the next patch. This implementation is not as fast as it could be, I'd suggest switching to using StringMap<char> (char being a dummy). However, this is a fine starting point, the implementation can be tuned later. About the interface: + PooledStringPtr intern(const std::string &Str); Instead of taking an std::string, please provide two versions: PooledStringPtr intern(const char *StrStart, const char *StrEnd); and: PooledStringPtr intern(const char *CStr) { return intern(CStr, CStr+strlen(CStr); } This discourages string abuse/...