Replies: 1 comment 1 reply
-
@levovix0 can you give me some examples? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was developing a relatively large website using happyx. At some point, compiling the server code began to take several minutes, and the binary took up a lot of space (around 16 megabytes). I looked into the code generated by the Nim compiler. Most of the server's code was taken up by regular expressions. Then I tried to implement the same functionality (routing to about 40 different urls) using
url.split('/')
and a small macro. The compilation speed increased 15 times, and the binary began to weigh 3 times less. I haven't measured the parsing speed, but I don't think it's any more significant than using regular expressions. Is it possible to somehow implement routing in happyx using a simpler method than RegEx?Beta Was this translation helpful? Give feedback.
All reactions