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

Macro recursion decrease and other optimizations #2084

Merged
merged 1 commit into from
Nov 6, 2021

Conversation

BlackDex
Copy link
Collaborator

@BlackDex BlackDex commented Nov 5, 2021

  • Decreased recursion_limit from 512 to 87
    Mainly done by optimizing the config macro's.
    This fixes an issue with the rust-analyzer which doesn't go beyond 128
  • Removed Regex for masking sensitive values and replaced it with a map()
    This is much faster then using a Regex.
  • Refactored the get_support_json macro's
  • All items above also lowered the binary size and possibly compile-time
  • Removed _conn: DbConn from several functions, these caused unnecessary database connections for functions who didn't used that at all
  • Decreased json response for /plans
  • Updated libraries and where needed some code changes
    This also fixes some rare issues with SMTP Lettre panics when there is an invalid certificate or invalid hostname match lettre/lettre#678
  • Using Rust 2021 instead of 2018
  • Updated rust nightly

- Decreased `recursion_limit` from 512 to 87
  Mainly done by optimizing the config macro's.
  This fixes an issue with the rust-analyzer which doesn't go beyond 128
- Removed Regex for masking sensitive values and replaced it with a map()
  This is much faster then using a Regex.
- Refactored the get_support_json macro's
- All items above also lowered the binary size and possibly compile-time
- Removed `_conn: DbConn` from several functions, these caused unnecessary database connections for functions who didn't used that at all
- Decreased json response for `/plans`
- Updated libraries and where needed some code changes
  This also fixes some rare issues with SMTP lettre/lettre#678
- Using Rust 2021 instead of 2018
- Updated rust nightly
@dani-garcia dani-garcia merged commit ead2f02 into dani-garcia:main Nov 6, 2021
@BlackDex BlackDex deleted the minimize-macro-recursion branch November 8, 2021 08:24
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.

3 participants