Skip to content

Commit

Permalink
update HISTORY
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Dec 20, 2023
1 parent 7781f2e commit 4ca5ad4
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@

**Enhancements**

- 2342_, [NetBSD]: filter `net_connections()`_ returned list in C instead of
- 2343_, [FreeBSD]: filter `net_connections()`_ returned list in C instead of
Python, and avoid to retrieve unnecessary connection types unless explicitly
asked. E.g., on an IDLE system with few IPv6 connections this will run around
170% faster. Before all connection types (TCP, UDP, UNIX) were retrived
internally, even if they were not returned.::

import psutil, time
started = time.monotonic()
for x in range(1000):
psutil.net_connections("tcp6")
print(f"completed in {(time.monotonic() - started):.4f} secs")
4 times faster. Before all connection types (TCP, UDP, UNIX) were retrived
internally, even if only a portion was returned.
- 2342_, [NetBSD]: same as above (#2343) but for NetBSD.

**Bug fixes**

Expand Down

0 comments on commit 4ca5ad4

Please sign in to comment.