[riot-notifications] [RIOT-OS/RIOT] gnrc_netreg: some optimisations (#8517)

Sebastian Meiling notifications at github.com
Mon Feb 5 15:57:46 CET 2018

The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.

### Contribution description

Some optimisation on gnrc_netreg functions, i.e. removes `gnrc_netreg_num` which isn't used (anymore) - or was only in tests. Thereby, also omitting a (redundant) loop in `gnrc_netapi_dispatch`, which should reduce runtime overhead, too. However, this (definitely) saves 64B ROM for all examples and tests that use gnrc_netreg functionality, e.g., `examples/gnrc_networking` or `tests/gnrc_sock_udp`.

### Issues/PRs references

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * gnrc/netreg: several optimizations
  * gnrc/netreg: remove obsolete gnrc_netreg_num

-- File Changes --

    M sys/include/net/gnrc/netreg.h (13)
    M sys/net/gnrc/application_layer/tftp/gnrc_tftp.c (2)
    M sys/net/gnrc/netapi/gnrc_netapi.c (74)
    M sys/net/gnrc/netreg/gnrc_netreg.c (46)
    M sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c (2)
    M tests/unittests/tests-netreg/tests-netreg.c (45)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20180205/35b7eea5/attachment.html>

More information about the notifications mailing list