Skip to content

Commit

Permalink
Fix the grammars
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed May 6, 2024
1 parent 2bbfb69 commit 201cc15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blog/2024-04-22-announcing-gnet-v2-5-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ The two major updates in this release are [feat: support edge-triggered I/O](htt

## Intro

In [#576](https://github.com/panjf2000/gnet/pull/576), `gnet` implemented edge-triggered I/O on the basis of `EPOLLET` in `epoll` and `EV_CLEAR` in `kqueue`. Before v2.5.0, `gnet` has been using level-triggered I/O under the hood, now developers are able to switch to edge-triggered I/O via functional option: `EdgeTriggeredIO` when developing and deploying `gnet` services. In certain specific scenarios, edge-triggered I/O may outperform level-triggered I/O, as a result of which, switching `gnet` from LT mode to ET mode can lead to significant performance improvements. But note that this performance boost is only theoretical inference and may only occur under specific circumstances. ***Therefore, please use ET mode with caution and conduct benchmark tests to collect sufficient numbers before the deployment in production.***
In [#576](https://github.com/panjf2000/gnet/pull/576), `gnet` implemented edge-triggered I/O on the basis of `EPOLLET` in `epoll` and `EV_CLEAR` in `kqueue`. Before v2.5.0, `gnet` had been using level-triggered I/O under the hood, now developers are able to switch to edge-triggered I/O via the functional option: `EdgeTriggeredIO` when developing and deploying `gnet` services. In certain specific scenarios, edge-triggered I/O may outperform level-triggered I/O, as a result of which, switching `gnet` from LT mode to ET mode can lead to significant performance improvements. But note that this performance boost is only a theoretical inference and may only occur under specific circumstances. ***Therefore, please use ET mode with caution and conduct benchmark tests to collect sufficient numbers before the deployment in production.***

Another useful new feature is [#578](https://github.com/panjf2000/gnet/pull/578), with which developers are allowed to bind multiple addresses(IP:Port) in one `gnet` instance. This feature makes it possible to build and run a `gnet` server that serves for various protocols or a specific set of backend services.
Another useful new feature is [#578](https://github.com/panjf2000/gnet/pull/578), with which developers are allowed to bind multiple addresses(IP:Port) in one `gnet` instance. This feature makes it possible to build and run a `gnet` server that serves various protocols or a specific set of backend services.

In addition to these two major features, we've also made a good deal of code optimizations: refactoring and streamlining the core code, as well as optimising the structure.

Expand Down

0 comments on commit 201cc15

Please sign in to comment.