How to reduce resource consumption

Hello,

I wrote a Database program using D3. However, it consumes a lot of
resources: almost 20%.

(My system's resources is about 95% running Explorer alone. When running my
program, it drops to about 76%)

How do I reduce the resources comsumed by my program?

Suggestions are most welcome!!