Profile / Thread styles
This commit is contained in:
@ -32,7 +32,7 @@ export abstract class FeedCache<TCached> {
|
||||
this.cache.size,
|
||||
this.onTable.size,
|
||||
this.#hooks.length,
|
||||
((this.#hits / (this.#hits + this.#miss)) * 100).toFixed(1)
|
||||
((this.#hits / (this.#hits + this.#miss)) * 100).toFixed(1),
|
||||
);
|
||||
}, 30_000);
|
||||
}
|
||||
@ -174,7 +174,7 @@ export abstract class FeedCache<TCached> {
|
||||
`Loaded %d/%d in %d ms`,
|
||||
fromCacheFiltered.length,
|
||||
keys.length,
|
||||
(unixNowMs() - start).toLocaleString()
|
||||
(unixNowMs() - start).toLocaleString(),
|
||||
);
|
||||
return mapped.filter(a => !a.has).map(a => a.key);
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ export function countMembers(a: any) {
|
||||
|
||||
export function equalProp(
|
||||
a: string | number | Array<string | number> | undefined,
|
||||
b: string | number | Array<string | number> | undefined
|
||||
b: string | number | Array<string | number> | undefined,
|
||||
) {
|
||||
if ((a !== undefined && b === undefined) || (a === undefined && b !== undefined)) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user