Skip to content

Very slow on Node v0.11.13 (previous are fine) #65

@ashtuchkin

Description

@ashtuchkin

node --trace-deopt shows that in this version the codecs are deoptimized (previous versions don't have that):

[deoptimizing (DEOPT eager): begin 0x1bfe98051541 encoderSBCSWrite (opt #11) @17, FP to SP delta: 40]
  translating encoderSBCSWrite => node=40, height=16
    0x7fff5fbff298: [top + 56] <- 0x1bfe980fb101 ; rsi 0x1bfe980fb101 <an Object with map 0x32648080fa59>
    0x7fff5fbff290: [top + 48] <- 0x1bfe98004c79 ; rcx 0x1bfe98004c79 <Very long string[262144]>
    0x7fff5fbff288: [top + 40] <- 0x3b45c8dcb1e5 ; caller's pc
    0x7fff5fbff280: [top + 32] <- 0x7fff5fbff2d8 ; caller's fp
    0x7fff5fbff278: [top + 24] <- 0x1bfe98051489; context
    0x7fff5fbff270: [top + 16] <- 0x1bfe98051541; function
    0x7fff5fbff268: [top + 8] <- 0x1bfe980fb189 ; rbx 0x1bfe980fb189 <a Buffer with map 0x32648080fbc1>
    0x7fff5fbff260: [top + 0] <- 0 ; rax (smi)
[deoptimizing (eager): end 0x1bfe98051541 encoderSBCSWrite @17 => node=40, pc=0x3b45c8dd34a4, state=NO_REGISTERS, alignment=no padding, took 0.037 ms]
[removing optimized code for: encoderSBCSWrite]
Node version v8 version
0.11.12 3.22.24
0.11.13 3.25.30

Probably something with isolates?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions