[Autosec-devel] [sonar 0000046]: target_t.ports array is huge
Brought to you by:
red0x
From: <no...@so...> - 2004-04-11 20:10:38
|
A BUGNOTE has been added to this bug. ======================================================================= http://autosec.sourceforge.net/helpDesk/mantis/view_bug_page.php?f_id=0000046 ======================================================================= Reporter: pharkas Handler: ======================================================================= Project: sonar Bug ID: 0000046 Category: Code Cleanup Reproducibility: N/A Severity: tweak Priority: low Status: new ======================================================================= Date Submitted: 04-10-04 21:51 PDT Last Modified: 04-11-04 13:10 PDT ======================================================================= Summary: target_t.ports array is huge Description: The ports array in every target_t struct is statically allocated to 65536 ints which takes up a lot of memory. We could cut this in half by changing it to chars ======================================================================= ----------------------------------------------------------------------- pharkas - 04-11-04 13:10 PDT ----------------------------------------------------------------------- On second thought it'd be better to abstract out the ports to methods so that we don't have to make every plugin deal with the ports. This is especially important if we ever want to move to a dynamic structure in the future. That's a much bigger project than s/int/char/, so i'm going to hold off on it until after the target expansion is done |