Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@urso
Copy link

@urso urso commented Apr 9, 2018

Cherry-pick of PR #6346 to 6.2 branch. Original message:

  • make States type easier to find by moving into separate states.go file
  • Ensure provides States constructor is actually used
  • Add ID->array index, index for faster lookups on update and find
    operations. When updating states in a big registry, the Updates
    converged to quadratic complexity. The index helps in keeping the
    complexity about linear in number of state updates.
  • Debug will print number of states subject to future cleanups (if state TTL > 0)
  • Add title to states unit tests

* Filebeat in memory states registry improvements

- make States type easier to find by moving into separate states.go file
- Ensure provides States constructor is actually used
- Add ID->array index, index for faster lookups on update and find
  operations. When updating states in a big registry, the Updates
  converged to quadratic complexity. The index helps in keeping the
  complexity about linear in number of state updates.
- Debug will print number of states subject to future cleanups (if state TTL > 0)
- Add title to states unit tests

* Fix godocs

* update state index in Cleanup

* Refine index handling + reintroduce debug message

* review

(cherry picked from commit 490cbcd)
@urso urso force-pushed the backport_6346_6.2 branch from 5e9c277 to d7eefcf Compare April 9, 2018 16:28
@andrewkroh andrewkroh merged commit 6292bcd into elastic:6.2 Apr 9, 2018
@urso urso deleted the backport_6346_6.2 branch February 19, 2019 18:40
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…ic#6804)

* Filebeat in memory states registry improvements

- make States type easier to find by moving into separate states.go file
- Ensure provides States constructor is actually used
- Add ID->array index, index for faster lookups on update and find
  operations. When updating states in a big registry, the Updates
  converged to quadratic complexity. The index helps in keeping the
  complexity about linear in number of state updates.
- Debug will print number of states subject to future cleanups (if state TTL > 0)
- Add title to states unit tests

* Fix godocs

* update state index in Cleanup

* Refine index handling + reintroduce debug message

* review

(cherry picked from commit 042b284)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants