mirror of
https://github.com/liriliri/eruda.git
synced 2026-04-05 10:28:34 +08:00
perf(console): reduce memory, 30% drop
This commit is contained in:
@@ -342,9 +342,9 @@ export default class Logger extends Emitter {
|
||||
if (
|
||||
!contain(['html', 'group', 'groupCollapsed'], log.type) &&
|
||||
lastLog.type === log.type &&
|
||||
lastLog.value === log.value &&
|
||||
!log.src &&
|
||||
!log.args
|
||||
!log.args &&
|
||||
lastLog.text() === log.text()
|
||||
) {
|
||||
lastLog.addCount()
|
||||
if (log.time) lastLog.updateTime(log.time)
|
||||
|
||||
Reference in New Issue
Block a user