obsidian-rs / obsidian

Ergonomic async http framework for reliable and efficient web
MIT License
26 stars 4 forks source link

Optimize Request Serializer #68

Open plwai opened 4 years ago

plwai commented 4 years ago

Problem

The current serializer for context.param, context.form, context.json and context.query_params performance is bad.

Possible root cause

There are too many clone and loops in the context.parse_queries function. Optimize the algorithm there should solve this problem.