zulip/zerver
Alex Vandiver 97a5690f55 timestamp: Switch to a slightly faster datetime_to_timestamp.
This is quite a bit faster:
```
%timeit calendar.timegm(now.timetuple())
    2.91 µs ± 361 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)

%timeit int(now.timestamp())
    539 ns ± 27 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each)
```

This is particularly important for the presence endpoint, which is a
tight loop of serializing datetimes.
2023-02-23 12:15:13 -08:00
..
actions message_send: Use stream object for name in "no subscribers" message. 2023-02-23 11:02:55 -08:00
data_import black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
integration_fixtures/nagios
lib timestamp: Switch to a slightly faster datetime_to_timestamp. 2023-02-23 12:15:13 -08:00
management ruff: Fix PIE810 Call `startswith` once with a `tuple`. 2023-02-08 16:40:35 -08:00
migrations migrations: Fix extra_data of RealmAuditLog objects. 2023-02-22 12:17:46 -08:00
openapi presence: Return some presence params in the /register response. 2023-02-21 12:10:43 -08:00
tests message_send: Use stream object for name in "no subscribers" message. 2023-02-23 11:02:55 -08:00
tornado tornado: Replace dataclasses.asdict() call, as it is slow. 2023-02-23 11:01:38 -08:00
views streams: Refactor code to set group-based stream settings. 2023-02-22 12:17:46 -08:00
webhooks docs: Remove spaces before commas. 2023-02-22 17:17:25 -08:00
worker deferred_work: Log at start of the work. 2023-02-09 12:06:38 -08:00
__init__.py
apps.py sentry: Initialize sentry in AppConfig ready hook. 2022-09-26 12:42:36 -07:00
context_processors.py ruff: Fix RSE102 Unnecessary parentheses on raised exception. 2023-02-04 16:34:55 -08:00
decorator.py ruff: Fix RSE102 Unnecessary parentheses on raised exception. 2023-02-04 16:34:55 -08:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py ruff: Fix SIM105 Use `contextlib.suppress` instead of try-except-pass. 2023-01-23 11:18:36 -08:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py ruff: Fix PIE810 Call `startswith` once with a `tuple`. 2023-02-08 16:40:35 -08:00
models.py streams: Refactor code to set group-based stream settings. 2023-02-22 12:17:46 -08:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00