Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QLManager performance issues #34

Open
Esqarrouth opened this issue Aug 6, 2016 · 2 comments
Open

QLManager performance issues #34

Esqarrouth opened this issue Aug 6, 2016 · 2 comments
Labels

Comments

@Esqarrouth
Copy link
Owner

When you do big loops, like 10k for loops some line in here is lagging the whole code. I think it might be the file extensions.

    for _ in 0..<10000 {
      QL1(11111)
   }
@Esqarrouth Esqarrouth added the bug label Aug 6, 2016
@Esqarrouth
Copy link
Owner Author

Did some tests:

Empty body: 3.99 e-06 sec
10k print(): 0.05 sec

10k ql1(): 0.45-0.61 sec
10k ql1(), with trackLogFunction: 0.9-1.5 sec

100 ql1: 0.025 sec
100 ql1, with trackLogFunction: 0.028-0.035 sec

Seems, its not bad unless you're using more than hundreds of logs every second. But there's definitely some room for improvements.

@Esqarrouth
Copy link
Owner Author

While the IDE is active most of the delay is coming from making the logs clickable: "Myclass.swift:338 " printing this part of the log.

Haven't checked what is delaying when IDE is inactive, ie running app without xcode plugged in. The timer tests in the previous posts are when IDE is inactive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant