NSString: Cache ICU collator in thread-local storage (#450)

* Add ICU collator caching

* Update ChangeLog
This commit is contained in:
Hugo Melder 2024-09-23 14:32:36 +02:00 committed by GitHub
parent cdbb1cc1b4
commit 5cd19978d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 198 additions and 105 deletions

View file

@ -72,6 +72,8 @@ GS_EXPORT_CLASS
struct autorelease_thread_vars _autorelease_vars;
id _gcontext;
void *_runLoopInfo; // Per-thread runloop related info.
// Used to store a GSICUStringCollatorCache object for this thread.
id _stringCollatorCache;
#endif
#if GS_NONFRAGILE
# if defined(GS_NSThread_IVARS)