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

format()の時間計算量を改善 #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ikeyan
Copy link

@ikeyan ikeyan commented Sep 12, 2020

format()関数のeditsを適用する計算量が、およそO(ソース文字列.length × edits.length)になっていたので、O(ソース文字列.length + edits.length * log(edits.length)) になるように変更しました。

@EduApps-CDG
Copy link

EduApps-CDG commented Oct 18, 2022

Translation:
Title:

Improved time complexity of format()

Message:

The computational complexity of applying the format() function's edits was
O(source string.length × edits.length),
changed to O(source string.length + edits.length * log(edits.length) )

Copy link

@EduApps-CDG EduApps-CDG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As i'm also having troubles with format() command.

But I still need to check what's causing a memory leak inside that command.

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

Successfully merging this pull request may close these issues.

None yet

2 participants