seitime-frappe/frappe
Ankush Menat 3ab2c2fbcf
perf: speedup rate limiter by ~1.2x (#28920)
* perf: reuse current time

now_datetime is site-tz-aware, we don't need it here.

* perf: dont need redis transactions

* perf: use `time.time()` instead of datetime

Using `datetime.timestamp()` is a round-about way to use `time.time()`
with extra cost of dealing with datetime and timezones.

* perf: define slots for rate_limiter

* fix!: Remove used rate limit header

This just shares how much was consumed in current request, people can
just time requests to get an approximation for this, not sure why is this
useful.
2024-12-26 10:57:46 +00:00
..
api refactor: fixup with ruff 0.8.1 2024-12-04 13:18:04 +05:30
automation refactor: fixup with ruff 0.8.1 2024-12-04 13:18:04 +05:30
change_log
commands perf: Use system settings directly for fetching language 2024-12-26 11:52:44 +05:30
contacts revert: restore JSON files (#28717) 2024-12-09 08:41:56 +00:00
core fix: typo in test controller boilerplate 2024-12-21 13:13:22 +05:30
custom revert: restore JSON files (#28717) 2024-12-09 08:41:56 +00:00
data
database fix: Never query flag_print_sql in developer_mode=0 (#28884) 2024-12-23 13:57:01 +00:00
desk fix(_get_communications): clean email content before returning 2024-12-24 15:11:36 +05:30
email fix(email): don't try to parse flags that seem to be invalid 2024-12-17 16:04:05 +05:30
geo fix: add Swedish date and time format 2024-12-14 06:52:29 +01:00
gettext refactor: fixup with ruff 0.8.1 2024-12-04 13:18:04 +05:30
integrations revert: restore JSON files (#28717) 2024-12-09 08:41:56 +00:00
locale chore: update POT file 2024-12-25 19:11:54 +00:00
model Merge pull request #28873 from krantheman/fix-html-editor 2024-12-24 16:14:00 +05:30
modules refactor: fixup with ruff 0.8.1 2024-12-04 13:18:04 +05:30
patches fix(Patch): only insert expression key if not exists 2024-12-09 12:36:11 +05:30
printing fix: add strings and fields to translation 2024-12-21 13:17:01 +01:00
public chore: spelling_invalid_values (#28858) 2024-12-23 11:02:20 +05:30
query_builder fix: datetime comparison in QB (#26364) 2024-05-09 10:19:27 +00:00
search refactor: change filter from tuple to dict 2024-11-26 11:38:15 +05:30
social revert: changes to energy point log 2024-11-05 12:25:33 +05:30
templates fix: add strings and fields to translation 2024-12-21 13:17:01 +01:00
testing chore: set default max_module_depth to 0 2024-12-04 17:19:02 +05:30
tests perf: speedup rate limiter by ~1.2x (#28920) 2024-12-26 10:57:46 +00:00
types perf: Make frappe._dict great again (#28824) 2024-12-18 16:36:31 +05:30
utils Merge remote-tracking branch 'upstream/develop' into invalid-encr-key-message 2024-12-24 12:36:33 +05:30
website fix: add strings and fields to translation 2024-12-21 13:17:01 +01:00
workflow fix: use get_email_template to support html template in workflow email 2024-10-24 14:43:39 +05:30
www chore(printview): change error message 2024-12-23 13:29:44 +05:30
__init__.py fix: Never query flag_print_sql in developer_mode=0 (#28884) 2024-12-23 13:57:01 +00:00
_optimizations.py fix: Avoid applying pinning optimization on RQ (#28896) 2024-12-24 09:41:18 +00:00
app.py refactor: move all optimizations and pre/post fork hooks to separate file (#28832) 2024-12-19 16:46:26 +05:30
apps.py fix: consider default path for Website User if applicable 2024-08-30 15:42:58 +05:30
auth.py refactor: fixup with ruff 0.8.1 2024-12-04 13:18:04 +05:30
bench_interface.py fix: bencher scoping (#28703) 2024-12-08 01:37:42 +00:00
boot.py refactor: fixup with ruff 0.8.1 2024-12-04 13:18:04 +05:30
build.py fix(build): os.replace -> shutil.move 2024-12-19 16:12:48 +05:30
cache_manager.py fix: Fix typo in build_domain_restriced function names 2024-11-20 13:52:19 +01:00
client.py devx: add deprecation dumpster (#27887) 2024-10-08 18:56:10 +02:00
config.py refactor: simplify bencher (#28694) 2024-12-07 14:10:03 +00:00
coverage.py ci: make gh actions functions (#28299) 2024-10-27 02:09:02 +00:00
defaults.py refactor: fixup with ruff 0.8.1 2024-12-04 13:18:04 +05:30
deferred_insert.py fix: ruff fixes 2024-02-07 17:04:31 +05:30
deprecation_dumpster.py fix: pending deprecations with unspecified graduation (#28704) 2024-12-08 02:19:19 +00:00
exceptions.py refactor: simplify bencher (#28694) 2024-12-07 14:10:03 +00:00
frappeclient.py refactor: fixup with ruff 0.8.1 2024-12-04 13:18:04 +05:30
handler.py chore: code cleanup 2024-12-17 13:11:57 +05:30
hooks.py fix: protect monitor logs from cache eviction 2024-12-18 19:13:02 +05:30
installer.py fix(installer): don't set defaults for frappe.flags.root_username 2024-12-02 13:32:06 +05:30
locale.py feat!: enhance Language to become more of a Locale (#27178) 2024-09-21 16:02:58 +02:00
middlewares.py
migrate.py chore: fix all invocation of init for singledispatch -> min 1 positional arg 2024-09-13 11:53:52 +02:00
modules.txt
monitor.py fix: Remove misleading os.O_NONBLOCK flag (#28859) 2024-12-23 05:22:13 +00:00
oauth.py refactor: Replace pytz to std lib zoneinfo & datetime 2024-12-06 15:43:33 +05:30
parallel_test_runner.py ci: this adds universal runtime typechecking during tests to test runners (#28554) 2024-11-28 15:11:30 +00:00
patches.txt chore: added patch to create missing keys and update counter 2024-12-09 11:32:50 +05:30
permissions.py fix: check at doc level when if owner role permission is checked during export from report view 2024-12-09 07:22:32 +00:00
push_notification.py chore: Add Push Notification Settings to Integrations workspace 2024-02-28 11:07:22 +05:30
rate_limiter.py perf: speedup rate limiter by ~1.2x (#28920) 2024-12-26 10:57:46 +00:00
realtime.py refactor: better permission checking on sockets 2024-04-06 21:14:48 +05:30
recorder.py ci: Run optimized python and control warnings (#28063) 2024-10-09 13:29:30 +00:00
sessions.py perf: Use system settings for fetching expiry 2024-12-26 11:27:27 +05:30
share.py style: re-format with ruff 2024-02-05 18:53:33 +05:30
test_runner.py refactor: organize test contextmanagers (#28041) 2024-10-09 02:09:19 +02:00
translate.py perf: Use system settings directly for fetching language 2024-12-26 11:52:44 +05:30
twofactor.py chore(twofactor): specify key to display during decryption failures 2024-09-16 13:00:38 +05:30