# Higher CPU vs Higher Memory. Which helps in what cases?

**URL:** <https://discuss.elastic.co/t/higher-cpu-vs-higher-memory-which-helps-in-what-cases/272798>\
**Category:** Elasticsearch\
**Created:** [May 12, 2021, 10:52am UTC](https://discuss.elastic.co/t/higher-cpu-vs-higher-memory-which-helps-in-what-cases/272798 "2021-05-12T10:52:54Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Aurel\_Drejta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aurel_drejta/32/59925_2.png) [@Aurel\_Drejta](https://discuss.elastic.co/u/Aurel_Drejta)\
**Post date:** [May 18, 2021, 2:08pm UTC](https://discuss.elastic.co/t/higher-cpu-vs-higher-memory-which-helps-in-what-cases/272798/18 "2021-05-18T14:08:25Z")

</div>

Yes the time has decreased, but i forgot to mention (and illustrate in the query i gave ) that the query does differ a bit for highlighting.  
Some words like "the", "is", "a", "to" get removed from the highlighting and is a requirement in our case.

But thanks for the feedback.

I found something that might help in this [thread](https://discuss.elastic.co/t/highlighting-takes-long-time-for-large-documents/8448/5).

They mentioned that a fast vector highlighter will decrease the search speeds by 2x at the cost of more disk space being used (not an issue in my case). Sounds promising 😃

---

_[View the full topic](https://discuss.elastic.co/t/higher-cpu-vs-higher-memory-which-helps-in-what-cases/272798)._
