The use case is translate http header key into enum.

this is the current code : https://run.dlang.io/is/lpw29w

In this fake code I only list a few headers, it should be more. but less then 128 and only include the a few codes.

how to make this more fast like with one loop and get the results.

I am think of use PCRE compile for this, but not sure how.

It should also save the non default headers in to a new array, so when search non default headers will reduce the total size.

I am plan to write a more fast http server with D betterC compare to vibed.





Reply via email to