apigear-io / template-cpp14

C++14 technology template
https://apigear.io/template-cpp14/docs/intro
MIT License
0 stars 1 forks source link

perf: optimize use of createMemberId #92

Closed dorotaphanSiili closed 1 year ago

dorotaphanSiili commented 1 year ago

minimize calling olinkObjectName() and createMemberId() by adding static const variables in functions. This was called a lot, and new string had to be allocated each time for the memberId, which doesn't change during the program lifetime. Now it is created only once