Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

[mORMot] improved /updates performance - #7860

Merged
NateBrady23 merged 2 commits into
TechEmpower:masterfrom
pavelmash:mormot/optimizeUpdates
Jan 18, 2023
Merged

NateBrady23 merged 2 commits into
TechEmpower:masterfrom
pavelmash:mormot/optimizeUpdates

Conversation

@pavelmash

@pavelmash pavelmash commented Jan 15, 2023 •

Copy link
Copy Markdown
Contributor

In this PR:

  • for batch update use order by ID for unnested arrays - this should minimize table locking on big concurrency
  • optimized per-thread connection retrieving by using a threadvar for O(1) lookup
  • change ThreadPollingWakeup algorithm to NOT focus the process on the first threads of the pool (removed hsoThreadSmooting option)
  • HTTP headers parser optimizations

pavel.mash added 2 commits January 15, 2023 16:42
…lgorithm; change ThreadPollingWakeup algorithm (removed hsoThreadSmooting option)
@NateBrady23
NateBrady23 merged commit 1e189f7 into TechEmpower:master Jan 18, 2023
franz1981 pushed a commit to franz1981/FrameworkBenchmarks that referenced this pull request Jun 23, 2023
* [mORMot] improved `/updates` performance; improver dbPool selection algorithm; change ThreadPollingWakeup algorithm (removed hsoThreadSmooting option)

* [mORMot] improved HTTP header parser

Co-authored-by: pavel.mash <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants