diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-22 10:12:55 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-22 13:03:43 +0100 |
commit | 4f72f6b8866cfa353a29248a4f1ca7c242949231 (patch) | |
tree | 3313c96d2a0f0fbec3f12ebd03ce32447416367f /DevTools/IPCCompiler | |
parent | 0395b25e3fea1ffa8b20d013b2bfd650e64043ed (diff) | |
download | serenity-4f72f6b8866cfa353a29248a4f1ca7c242949231.zip |
AK: Add FlyString, a simple flyweight string class
FlyString is a flyweight string class that wraps a RefPtr<StringImpl>
known to be unique among the set of FlyStrings. The class is very
unoptimized at the moment.
When to use FlyString:
- When you want O(1) string comparison
- When you want to deduplicate a lot of identical strings
When not to use FlyString:
- For strings that don't need either of the above features
- For strings that are likely to be unique
Diffstat (limited to 'DevTools/IPCCompiler')
-rw-r--r-- | DevTools/IPCCompiler/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/DevTools/IPCCompiler/Makefile b/DevTools/IPCCompiler/Makefile index 416c93b0fd..498f71883f 100644 --- a/DevTools/IPCCompiler/Makefile +++ b/DevTools/IPCCompiler/Makefile @@ -4,14 +4,15 @@ PROGRAM = IPCCompiler OBJS = \ main.o \ + ../../AK/FlyString.o \ + ../../AK/JsonParser.o \ + ../../AK/JsonValue.o \ + ../../AK/LogStream.o \ ../../AK/String.o \ - ../../AK/StringImpl.o \ ../../AK/StringBuilder.o \ - ../../AK/StringView.o \ + ../../AK/StringImpl.o \ ../../AK/StringUtils.o \ - ../../AK/JsonValue.o \ - ../../AK/JsonParser.o \ - ../../AK/LogStream.o \ + ../../AK/StringView.o \ ../../Libraries/LibCore/IODevice.o \ ../../Libraries/LibCore/File.o \ ../../Libraries/LibCore/Object.o \ |