You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**When waiting for messages with the UDP dish it consumes a lot of CPU
import{Dish}from'zeromq/draft';import{cpuUsage}from'process';constgroup='demo';asyncfunctionrun(){constdish=newDish();dish.join(group);awaitdish.bind('udp://127.0.0.1:3000');console.log('Subscriber connected to port 3000');// same issue with for await (const [msg, {group}] of dish) while(true){const[message]=awaitdish.receive();console.log('received message:',message.toString());}}conststartUsage=cpuUsage();constprintUsage=()=>{constusage=cpuUsage(startUsage);console.log(`CPU Usage: `,usage);};setInterval(printUsage,1000);run();
Tested on
OS: Windows, node 20
ZeroMQ.js version: 6.3.0
The text was updated successfully, but these errors were encountered:
**When waiting for messages with the UDP dish it consumes a lot of CPU
Tested on
The text was updated successfully, but these errors were encountered: