Closed Bug 455391 Opened 18 years ago Closed 10 years ago

nsCertOverrideService's mSettingsTable wastes memory

Categories

(Core :: Security: PSM, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bzbarsky, Assigned: timeless)

References

Details

(Whiteboard: [psm-logic])

Attachments

(1 file)

When we init this table, there is a debug message: pldhash: for the table at address 0x6f57ab0, the given entrySize of 76 definitely favors chaining over double hashing. The issue is that the nsCertOverride struct is pretty big. It can by shrunk by 8 bytes by combining the port, boolean, and bits into a single 32-bit value, but that doesn't really solve the problem. It might be worth it to store a pointer to a nsCertOverride here instead of storing an nsCertOverride directly.
Assignee: kaie → nobody
Whiteboard: [psm-logic]
Blocks: 571167
Attached patch proposal — — Splinter Review
is this roughly what you wanted?
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #497776 - Flags: feedback?(bzbarsky)
Comment on attachment 497776 [details] [diff] [review] proposal I didn't want anything; I just reported a bug about an obvious inefficiency. I have no idea what this code is doing and why....
Attachment #497776 - Flags: feedback?(bzbarsky)
Users don't have enough certificate overrides to make this much of an issue (telemetry indicates the vast majority of users have <100 overrides).
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: