atom-wordpress-api icon indicating copy to clipboard operation
atom-wordpress-api copied to clipboard

Very slow...

Open Asored-D opened this issue 9 years ago • 4 comments

Hi guys,

i love this package, but if is activated, writing PHP code with Atom goes very slow... (1-2 sec. delay) ..do you know this issue?

Thanks in advance!

Asored-D avatar May 14 '15 09:05 Asored-D

Please provide the following information:

  • Version of the Atom you are using.
  • Version of the package you are using.
  • List of all the other packages you are using at the same time.

If you really like to be super useful please perform a CPU profiler with the dev tools and send me your result.

azizur avatar Jun 20 '15 16:06 azizur

I'm getting this, too, so let me be more helpful.

Atom 1.0.2 WordPress API 1.2.1 Other packages: only core CPU profiler: https://dl.dropboxusercontent.com/u/5502/CPU-20150712T214108.cpuprofile

This slowdown usually happens when Atom tries to suggest other things for me. For example, starting is_ for is_array results in a 2-second hang. But after I've typed it, it works fine.

In my CPU profiler, you'll see that I typed is_array, but the problem didn't happen until I typed something I hadn't just typed, which was array_key_exists.

It seems to hang most on underscores, but that could just be when I notice it.

theDanielJLewis avatar Jul 13 '15 01:07 theDanielJLewis

Thank you @DanielJLewis.

Quick look at the CPU Profile I am not easily seeing any issue steam form this package.

I will try to test this and look again at the CPU Profile to see if I can find source of the issue.

Once again thank you for providing some context to this issue.

azizur avatar Jul 13 '15 13:07 azizur

I have just updated the plugin please update and let me know if the issue still there.

azizur avatar Mar 06 '16 17:03 azizur