Skip to content

Performance and Debug improvements

Choose a tag to compare

@DavertMik DavertMik released this 09 Sep 01:15
· 209 commits to master since this release

A huge improvement to stability, performance added. Level of hard magic reduced.
AspectMock dropped Go Aop proxy classes, and now tries to affect your code in very minimal way.

Instead of creating A_AspectProxy for class A (as Go Aop does), AspectMock places its tiny beacons directly into A methods, in very beginning of method definition.

Changes:

  • you can freely use debugger, as your classes left practically unchanged.
  • stacktrace look much more cleaner and more natural.
  • performance dramatically improved. Still, AOP magic takes about 15% of overall execution.
  • remved MethodProxy class. You can't verify result of method calls anymore.
  • test::ns method added to api, for prepending a namespace name to class.
  • debug is enabled by default