Skip to content

Avoid use of setcheckinterval and/or setswitchinterval #376

@maartenbreddels

Description

@maartenbreddels

Hi,

I noticed that using version 4.11.2 with my own multithreading caused vaex to slow down alot. I found the issue to be the call to setswitchinterval instead of setcheckinterval, which has different semantics.

  • setcheckinterval takes as argument the # of instruction after which to do a context switch
  • setswitchinterval takes as argument the number of seconds after which to do a context switch, which is now set to 100. So it only does it after more than a minute!

Also, it affects the whole Python interpreter, isn't it better not to change this? And remove this line alltogether?

Relevent issues's PR's: #326 #319

Thanks.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions