Why API Is Too Slow

hi I’m using API Php Class But I want to know why api is too slow why it is not like winbox

it’s take long time to disable,enable,add or remove

for example i have 600 user on rb750gl i can enable and disable all users but it’s take long time may be 5 minutes
or more

but via winbox just seconds

this is my class
http://wiki.mikrotik.com/wiki/API_PHP_class

thanks

If you’re doing multiple enable/disable/remove commands, that’s to be expected.

To make it more efficient, you should collect all IDs in a comma separated list, and execute a single enable/disable/remove command with all of them.

Winbox is more efficient because by the time you hit the “enable/disable/remove” button, the comma separated list has already been gathered (with each click on an entry), and only that single command is issued.

thanks, you are right.
your suggest solved my problem

can you please explain to me more
.
or give me just example, buz i suffering from slow api

This is unuseful, the user left MikroTik forum on 2019,
very bad habit to resurrect old topic from 10 years ago…

sorry
advice me what should i do

No reply to an 10 year post…

And do not quote the whole post above you. Not a good habit as well.
Use the green Post Reply button under the the post to reply some.
When there are post inn between, you can quote a post, but pick only what you reply to.