Commit graph

24 commits

Author SHA1 Message Date
April John
701fc6d275 beban work on account domains 2023-08-01 21:23:32 +02:00
Laura Hausmann
5a2ca61f26
Remove support for ads 2023-07-27 00:32:20 +02:00
Laura Hausmann
3ac4e8d9a5
Further rebranding 2023-07-21 19:33:01 +02:00
ThatOneCalculator
73f3303f62 Merge branch 'rebrand' into develop 2023-07-19 08:55:26 -07:00
naskya
0f7795977e Merge branch 'develop' into refactor/antennas-in-cache 2023-07-17 04:43:03 +00:00
ThatOneCalculator
d425c29347 refactor: 🚨 linting fix 2023-07-16 15:32:32 -07:00
ThatOneCalculator
6bc25eb38b Merge branch 'develop' into rebrand 2023-07-15 14:15:01 -07:00
Namekuji
634559d68a fix: renew entity models 2023-07-10 02:17:30 -04:00
Namekuji
2edb9ab8bd copy existing posts in antenna to redis at migration 2023-07-10 01:59:14 -04:00
Laura Hausmann
4e2c73dba9 Remove debug logging 2023-07-06 02:16:51 +00:00
ThatOneCalculator
6c7f0521aa find and replace 2023-07-02 15:18:30 -07:00
Laura Hausmann
d6b3c9af59 Fix mastodon api conversion for new note id type 2023-07-01 22:07:08 -07:00
ThatOneCalculator
7f3b9b171c fix: 🚸 make "show replies in timeline" work as expected
Co-authored-by: Syuilo <syuilotan@yahoo.co.jp>
2023-06-14 20:17:56 -07:00
ThatOneCalculator
1c7ca06710 fix typo 2023-06-11 23:12:22 -07:00
Namekuji
1279f396a6 add unit test 2023-06-02 23:48:27 -04:00
Namekuji
8b021f828f fix unit tests 2023-06-02 23:48:27 -04:00
Namekuji
3bfb1a0cf0 add format script 2023-06-02 23:48:27 -04:00
Namekuji
b0a7970ac7 fix native import 2023-06-02 23:48:26 -04:00
Namekuji
d8f95d7d99 fix unit test 2023-06-02 23:48:24 -04:00
Namekuji
af85304578 add native calls 2023-06-02 23:48:24 -04:00
Namekuji
bc209143e6 adjust module structure 2023-06-02 23:48:23 -04:00
Namekuji
5f849e417e move files out from crate 2023-06-02 23:48:23 -04:00
Namekuji
623f796ee9 add entities and two schemas 2023-06-02 23:48:07 -04:00
s1idewhist1e
981d3ee725 Refactor: use rust for native mastodon id conversion (#9786)
This uses [napi-rs](https://napi.rs/) to allow for automatic generation of node bindings for the native code.

I also changed the `isolatedModules` TS flag to false to allow for `static enum` to be shared across modules. It doesn't seem to be necessary for the build system that CK uses.

Currently this method does not work with ID generators with longer IDs. Likely the best solution is to add another key in the database.

Some benchmarks for 1 million conversions:

```
	node, x1_000_000: 2.847s
	rust, x1_000_000: 1.265s
```

There are still optimizations that can be made, but I think this is a good starting point and a good way to bring rust into the CK stack.

Co-authored-by: s1idewhist1e <trombonedude05@gmail.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9786
Co-authored-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
Co-committed-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
2023-03-31 01:58:28 +00:00