Skip to content

Optimize org-bullets--keywords: Remove redundant calculations#11

Open
jamescherti wants to merge 1 commit intointegral-dw:masterfrom
jamescherti:optimize
Open

Optimize org-bullets--keywords: Remove redundant calculations#11
jamescherti wants to merge 1 commit intointegral-dw:masterfrom
jamescherti:optimize

Conversation

@jamescherti
Copy link

@jamescherti jamescherti commented Oct 21, 2024

  • Optimize org-ibullets--keywords by replacing redundant calculations with variables whose values are computed once.
  • Enhance the clarity of the org-bullets-level-char function.

@jamescherti jamescherti force-pushed the optimize branch 7 times, most recently from f4c144a to 6105fdb Compare October 21, 2024 21:51
Optimize `org-ibullets--keywords` by replacing redundant calculations
with variables whose values are computed once:
- `(- heading-end 2)`
- `(- heading-end 1)`
- `(match-beginning 0)`
- `(match-end 0)`

Additionally, enhance the clarity of the `org-bullets-level-char`
function.
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.

1 participant