# Avoid high processor usage while running TreeForm/@NestList\[#^#&,x,4\] ?

**URL:** <https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140>\
**Category:** Questions\
**Tags:** mathematica, external-interfaces, optimization, tuning-and-debugging\
**Created:** [August 24, 2016, 5:30pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140 "2016-08-24T17:30:19Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackreeceejini](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jackreeceejini/32/20726_2.png) [@jackreeceejini](https://community.wolfram.com/u/jackreeceejini)\
**Post date:** [August 24, 2016, 5:30pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/1 "2016-08-24T17:30:19Z")

</div>

When I run

```
TreeForm/@NestList[#^#&,x,4]

```

In version 11, the third output just keeps blinking. Processor usage stays high on the kernel process even after executing.

Anybody experiencing this?

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [August 24, 2016, 5:53pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/2 "2016-08-24T17:53:17Z")

</div>

Hi,

I cannot reproduce that on MMA 11 and OSX 10.11.6

Cheers,

Marco

---

<div class="post-metadata">

**Author:** ![fkampas](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/fkampas/32/41217_2.png) [@fkampas](https://community.wolfram.com/u/fkampas)\
**Post date:** [August 24, 2016, 5:54pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/3 "2016-08-24T17:54:31Z")

</div>

I see it on MMA 11 running under Windows 10

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [August 24, 2016, 6:02pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/4 "2016-08-24T18:02:02Z")

</div>

I think your code has a useless \

```
TreeForm@NestList[#^# &, x, 4]

```

 ![bslash.png](https://global.discourse-cdn.com/wolfram/original/3X/f/c/fc27bf0b2004bd560aa45811f979b8b703164332.png)

---

<div class="post-metadata">

**Author:** ![jackreeceejini](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jackreeceejini/32/20726_2.png) [@jackreeceejini](https://community.wolfram.com/u/jackreeceejini)\
**Post date:** [August 24, 2016, 6:21pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/5 "2016-08-24T18:21:56Z")

</div>

Yeah I’m using win 10

---

<div class="post-metadata">

**Author:** ![jackreeceejini](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jackreeceejini/32/20726_2.png) [@jackreeceejini](https://community.wolfram.com/u/jackreeceejini)\
**Post date:** [August 24, 2016, 6:29pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/6 "2016-08-24T18:29:42Z")

</div>

The code was lifted from STEPHEN WOLFRAM’S book: elementary introduction to the wolfram language. Every keystroke is intended.

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [August 24, 2016, 6:41pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/7 "2016-08-24T18:41:50Z")

</div>

Hi,

how do you conclude that? Wouldn’t that depend a bit on what you want to represent? It seems to be perfectly valid to look at the elements of the sequence.

```
TreeForm /@ NestList[#^# &, x, 4]

```

 ![ScreenShot2016-08-24at19.40.12.png](https://global.discourse-cdn.com/wolfram/original/2X/f/f5138ed949178b062c5bceaa48d663d08d1b0f73.png)

It appears to me that the input is syntactically correct.

Cheers,

Marco

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [August 24, 2016, 6:52pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/8 "2016-08-24T18:52:48Z")

</div>

Agree! It was only a supposition!

I have the same effect on my computer reported by Jackreece.

In[1]:= $Version

Out[1]= “11.0.0 for Microsoft Windows (64-bit) (July 28, 2016)”

---

<div class="post-metadata">

**Author:** ![anon21378091](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anon21378091](https://community.wolfram.com/u/anon21378091)\
**Post date:** [August 24, 2016, 7:04pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/9 "2016-08-24T19:04:48Z")

</div>

Ok, great

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [August 24, 2016, 7:57pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/10 "2016-08-24T19:57:51Z")

</div>

Ok, I tried this on several Macs. It appears to be a non-issue there.

Cheers,

M.

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [August 24, 2016, 8:16pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/11 "2016-08-24T20:16:28Z")

</div>

Sorry everyone.

Now I can see it on a Mac Mini, but only when I move the Mouse.

Shame. I hope for one Macs would not have that problem…

Cheers,

Marco

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [August 24, 2016, 8:34pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/12 "2016-08-24T20:34:19Z")

</div>

Effect appears even for

```
TreeForm /@ NestList[#^# &, x, 2]

```

and only for one element:

 ![NDeque.gif](https://global.discourse-cdn.com/wolfram/original/3X/3/3/33a7ea3118d58fbda39c42a2aa32c4e77fc3d2c3.gif)

All the others are ok:

 ![10695NDeque.gif](https://global.discourse-cdn.com/wolfram/original/3X/a/6/a62b25a0a5be43c19c78ce27bb117b3ccf40e458.gif)

---

<div class="post-metadata">

**Author:** ![jackreeceejini](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jackreeceejini/32/20726_2.png) [@jackreeceejini](https://community.wolfram.com/u/jackreeceejini)\
**Post date:** [August 24, 2016, 8:44pm UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/13 "2016-08-24T20:44:28Z")

</div>

Iv written to support. Does anyone have a faster way to get to them? It could be a problem with the rendering subsystem.

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [August 25, 2016, 7:56am UTC](https://community.wolfram.com/t/avoid-high-processor-usage-while-running-treeform-nestlist-x-4/9140/14 "2016-08-25T07:56:59Z")

</div>

I have reported to support, too, and sent them the file.
