Creating schema_validator on each request slows down websocket transport

Bug #1526002 reported by Eva Balycheva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zaqar
New
Undecided
Eva Balycheva

Bug Description

See https://github.com/openstack/zaqar/blob/stable/liberty/zaqar/api/handler.py#L55

I think it would be more effective to create schema_validator once and process all requests by using this single instance instead of recreating it on each incoming request.

I don't know how much it will increase the performance, since there is no benchmark for websocket transport of Zaqar.

Eva Balycheva (ubershy)
Changed in zaqar:
assignee: nobody → Eva Balycheva (ubershy)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.