summaryrefslogtreecommitdiff
path: root/DevTools/IPCCompiler
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-15 11:27:47 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-15 12:10:48 +0100
commit2ae9a56c3ff707e9b3db576ecd98adc3ca3f0a66 (patch)
treeb1cbd243bc93e1cdfdf15b92acb9875b9d5c976d /DevTools/IPCCompiler
parentef01af1cb29d1ff077084cd9dcbc5a446f980d34 (diff)
downloadserenity-2ae9a56c3ff707e9b3db576ecd98adc3ca3f0a66.zip
LibIPC: Move IPC::Encoder functions out of line
Compiling anything that includes generated IPC messages is painfully slow at the moment. This moves the encoding helpers out of line, which helps a bit. Doing the same for decoding will help more.
Diffstat (limited to 'DevTools/IPCCompiler')
-rw-r--r--DevTools/IPCCompiler/main.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/DevTools/IPCCompiler/main.cpp b/DevTools/IPCCompiler/main.cpp
index 016140976a..21e322bc0a 100644
--- a/DevTools/IPCCompiler/main.cpp
+++ b/DevTools/IPCCompiler/main.cpp
@@ -392,14 +392,7 @@ int main(int argc, char** argv)
dbg() << " stream << endpoint_magic();";
dbg() << " stream << (int)MessageID::" << name << ";";
for (auto& parameter : parameters) {
- if (parameter.type == "String") {
- dbg() << " if (m_" << parameter.name << ".is_null()) {";
- dbg() << " stream << (i32)-1;";
- dbg() << " } else {";
- dbg() << " stream << static_cast<i32>(m_" << parameter.name << ".length());";
- dbg() << " stream << m_" << parameter.name << ";";
- dbg() << " }";
- } else if (parameter.type == "Gfx::Color") {
+ if (parameter.type == "Gfx::Color") {
dbg() << " stream << m_" << parameter.name << ".value();";
} else if (parameter.type == "Gfx::Size") {
dbg() << " stream << m_" << parameter.name << ".width();";