wwqgtxx
aa51b9faba
chore: replace using internal batch package to x/sync/errgroup
...
In the original batch implementation, the Go() method will always start a new goroutine and then wait for the concurrency limit, which is unnecessary for the current code. x/sync/errgroup will block Go() until the concurrency limit is met, which can effectively reduce memory usage.
In addition, the original batch always saves the return value of Go(), but it is not used in the current code, which will also waste a lot of memory space in high concurrency scenarios.
2025-04-28 10:28:45 +08:00
ForestL
9bfb10d7ae
chore: extracting compressed files to correct location ( #1823 )
2025-02-05 10:10:58 +08:00
wwqgtxx
fbead56ec9
feat: add size-limit
for provider
...
https://github.com/MetaCubeX/mihomo/issues/1645
2024-11-27 09:28:38 +08:00
ForestL
4437c8861c
chore: better getUpdateTime() for iterating all Geofiles ( #1570 )
2024-10-11 08:46:31 +08:00
wwqgtxx
8e6eb70e71
chore: temporary update general in ParseRawConfig and rollback before its retur
2024-10-06 00:21:00 +08:00
wwqgtxx
9286e21026
chore: rebuild external ui updater
2024-10-05 13:40:00 +08:00
wwqgtxx
966eeae41b
chore: rewrite bbolt cachefile implements
...
never use returned byte slices outside the transaction, ref:
https://pkg.go.dev/go.etcd.io/bbolt#hdr-Caveats
2024-09-23 09:35:48 +08:00
wwqgtxx
b7cb6774bf
chore: support ETag for update geo
2024-09-22 13:57:57 +08:00
wwqgtxx
7c8f451892
chore: cleanup geo internal code
2024-09-09 16:08:48 +08:00
wwqgtxx
ef244b896a
chore: update geo in a batch
2024-09-09 10:07:50 +08:00
Larvan2
56fe7d5304
chore: clean up update_ui code
2024-09-02 11:17:35 +08:00
wwqgtxx
4fedfc47b0
chore: update geo unneeded reload whole config
2024-08-16 09:19:18 +08:00
Larvan2
50d0cd363c
chore: auto download external UI when 'external-ui' is set and not empty
2024-08-13 14:19:34 +08:00
Larvan2
4243a74284
chore: auto update geo
2024-05-19 18:51:06 +08:00
Larvan2
c3ee921d30
chore: apply config when geo update
2024-05-19 15:46:23 +08:00
Larvan2
5c3a9b1dfc
fix: geo auto update #1261
2024-05-17 11:51:32 +08:00