openssl / project

Tracking of project related issues
2 stars 1 forks source link

Decoder performance refactor #100

Open arapov opened 1 year ago

arapov commented 1 year ago

The current state of things:

The routine invoking the decoders first builds all the possible chains of decoders with the current providers, propquery and other parameters. This is cached so this expensive build step is performed just once for given set of parameters (unless providers are loaded/unloaded which invalidates the cache).

Then the decoder chains are iteratively and recursively called until something is decoded and the object construction succeeds.

The problems are:

Possible solutions:

### Tasks
- [ ] https://github.com/openssl/project/issues/111
- [ ] Implement the proposed decoder perf. refactor
krk commented 4 months ago

Is there a concrete definition of what the new design should look like?

mattcaswell commented 4 months ago

No (but see #111)

t8m commented 4 months ago

I've updated the description to provide some useful starting points.

t8m commented 4 months ago

BTW the current state of the decoder performance in 3.3 is much better than it was in 3.0. It is of course still not as fast as 1.1.1 was but the performance degradation is no longer catastrophic.