Skip to content

Enhance the performance of handling with each event #209

@cryptosession

Description

@cryptosession

The high frequent handling of an object being necessary for each event listening, especially when the probes are inserted into String class, makes this scenario prone to poor performance. We can improve the overall performance by the following optimization methods:

  1. Replace the StringUtils.replace with String.replace
  2. Use StringBuilder instead of String.format —— As this issue shows, this might lead to tenfold improvement in performance.
  3. Loading target classes when necessary rather than each time when event fires.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions