Huge two list data should be compared using c# and must ensure performance improves

I have a two list contains huge data and had the following code which I used till now. But have some doubts regarding this, due to lot of confusion about the data is compared or not in the list items. Here I am using sequence Equal to compare the data I have two questions, somewhere I found that sequenceEqual will compare the data in the lists. So used it. 1. Will sequenceEqual compares the data in the lists 2. better way of code to improve performance. As per understanding I kept only three items in both the lists but our requirement has huge data itmes in the lists. so need to improve performance

bool value = false;         List<string> list1 = new List<string>();         list1.Add("one");         list1.Add("two");         list1.Add( "three" );          List<string> list2 = new List<string>() { "one", "two", "three" };         list2.Add("one");         list2.Add("two");         list2.Add("three");         list1.Sort();         list2.Sort();         if (list1.SequenceEqual(list2))         {             value = true;         }         else         {             value = false;         }         return value; 

For some reason php7.0-fpm send data to nginx with huge delay, how find reason

I have some problems with application perfomance. Admins infiltrated between php-fpm and nginx and said that nginx get data with delay (dozens of seconds).

I use PHP 7.0.23, nginx/1.12.1, FreeBSD 10.3-RELEASE-p11

Application logs show that code finish work in second or less.

Does php-fpm have some ready solution? For example set some compile options, build php-fpm and get process that write perfomance logs so i can find root of the problem? Or i just should understand how php-fpm works, add logs where it is required on my own and build php-fpm?

I’m writing an extremely huge web app by hand and things are getting extremely chaotic. Are there any good methods for organization? [on hold]

I’m a 9th grader- going into 10th- and I’ve been working on a web application for my school for about eight months now and code organization is getting extremely chaotic. I wrote the application entirely by hand and never thought about using a library until recently and it’s hard to turn around now. I really would like to know how to better organize my code and make it look less ‘scary’.

Thanks, Angelo.

Can Polymorph Any Object turn a human into a Huge Giant with a Permanent duration, with all the benefits of Giant Form II?

Can Polymorph Any Object turn a human into a Huge Giant with a Permanent duration, with all the benefits of Giant Form II?

James Jacobs (Paizo Creative Director) says on the Paizo forums in response to someone asking about doing this:

Polymorph any object can’t really do this. You’re trying to emulate giant form II in this case, and [giant] form II isn’t an option for polymorph any object, which functions as greater polymorph for the purposes of what it can do, unfortunately.

But the spell states:

This spell functions like greater polymorph, except that it changes one object or creature into another.

Based on this wording, is the Polymorph Any Object spell able to grant you the form of a Huge creature with the giant subtype with all the benefits of Giant Form II?

Could a Huge or bigger creature (bigger than a 10-foot-radius sphere) use Antimagic Field?

Could a Huge or bigger creature use antimagic field?

The antimagic field spell description says:

Range: Self (10-foot radius sphere)

A 10-foot-radius invisible sphere of antimagic surrounds you. […] Until the spell ends, the sphere moves with you, centered on you.

The Variant: Dragons as Innate Spellcasters box under the Dragons entry in the MM (p. 86) allows a Dragon to cast spells of a level 1/3 their CR:

Dragons are innately magical creatures that can master a few spells as they age, using this variant.

A young or older dragon can innately cast a number of spells equal to its Charisma modifier. Each […] spell’s level can be no higher than one-third the dragon’s challenge rating (rounded down).

So a CR24 Ancient Dragon can cast 8th-level spells and be Gargantuan.

A Gargantuan dragon’s “self” is larger than 10 feet. So is there a ten-foot-radius sphere that pops up deep inside the dragon’s body? Or does it surround the dragon’s body to an area of 10 feet around it?

I’d tend to say the latter, but I’m not sure how to adjudicate that. The two parts of the spell description are mutually exclusive and neither is more or less specific than the other.

Ubuntu doesn’t boot after install, huge swapfile

Was working without issue within Ubuntu 18.04 on a dual-boot machine.

Installed a tex ide via the command line:

sudo apt-get install texmaker 

which appeared to complete successfully. I subsequently clicked on the first gummi link in a response on this SE page, which lanched a new tab, appeared to be resolving, but never fully resolved after a minute or so. I closed it, launched a new tab and searched, never successfully getting to the page.

I wasn’t doing much otherwise, just watching a youtube vid on an adjacent screen and realized my memory was blocked up after getting errors to cd via the command line. I tried a df on my home directory to see what might be causing it and showed most dirs with normal memory allocations, but a huge swapfile, multiple gigs. I tried restarting to clear it, but haven’t been able to get back in.

I’d allocated 40GB for the Ubuntu partition, and don’t save anything substantial there barring a couple GB movie files in the last couple days, without issue, so I wouldn’t expect the recent install of texmaker would have changed things, even at 1GB+. Checking Windows disk manager shows 100% free, not sure whether that’s good or bad (partition 5):

enter image description here

Any thoughts on how to diagnose and fix.

Edit (with additional boot detail): I’m able to boot, select Ubuntu from within the grub dialogue, and ultimately end up on a command-line looking screen with a version of:

/dev/p5 clean 234234/2342234 files, 234234/2324234 blocks 

after which it hangs.

Huge performance difference: PowerShell Core vs. 5.1

Recently I have answered another question about performance. A solution found using PowerShell-ISE successfully, and good speed testified using PowerShell Core.

However, running the same script(s) in PowerShell 5.1 displays utterly different results, absolutely worse in the performance improvement. Moreover, the original script runs more than 4× slower than in ISE.

So my question is: where lays a reason for such an enormous variance, and what should I avoid in PowerShell scripting (or, conversely, maybe explicitly load a .NET library or something alike)?

PowerShell-ISE: performance improvement cca 10:1 (good):

.\cr2635wrapper.ps1 -maxLoop 8;$  Host.Name;$  PSVersionTable 
VERBOSE: maxRange=7, lowCountThreshold=1, operators="+-*/" permutations=4096 formatString="1{0}2{1}3{2}4{3}5{4}6{5}7" orig.     7       269       756        19,574412 VERBOSE: maxRange=7, lowCountThreshold=1, operators="+-*/" permutations=4096 formatString="1{5}2{4}3{3}4{2}5{1}6{0}7" answer    7       284       839         1,911312  Windows PowerShell ISE Host  Name                      Value                   ----                      -----                   PSVersion                 5.1.17763.503           PSEdition                 Desktop                 PSCompatibleVersions      {1.0, 2.0, 3.0, 4.0...} BuildVersion              10.0.17763.503          CLRVersion                4.0.30319.42000         WSManStackVersion         3.0                     PSRemotingProtocolVersion 2.3                     SerializationVersion      1.1.0.1 

PowerShell Core: performance improvement cca 28:1 (excellent):

pwsh -noprofile -command .\cr2635wrapper.ps1 -maxLoop 8;$  Host.Name;$  PSVersionTable 
VERBOSE: maxRange=7, lowCountThreshold=1, operators="+-*/" permutations=4096 formatString="1{0}2{1}3{2}4{3}5{4}6{5}7" orig.     7       269       756       22,0310531 VERBOSE: maxRange=7, lowCountThreshold=1, operators="+-*/" permutations=4096 formatString="1{5}2{4}3{3}4{2}5{1}6{0}7" answer    7       284       839        0,7800336  ConsoleHost  Name                           Value ----                           ----- PSVersion                      6.2.0 PSEdition                      Core GitCommitId                    6.2.0 OS                             Microsoft Windows 10.0.17763 Platform                       Win32NT PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion      2.3 SerializationVersion           1.1.0.1 WSManStackVersion              3.0 

PowerShell 5.1: performance improvement cca 4:3 (very poor):

powershell -noprofile -command .\cr2635wrapper.ps1 -maxLoop 8;$  Host.Name;$  PSVersionTable 
VERBOSE: maxRange=7, lowCountThreshold=1, operators="+-*/" permutations=4096 formatString="1{0}2{1}3{2}4{3}5{4}6{5}7" orig.     7       269       756       87,1714765 VERBOSE: maxRange=7, lowCountThreshold=1, operators="+-*/" permutations=4096 formatString="1{5}2{4}3{3}4{2}5{1}6{0}7" answer    7       284       839        64,888286  ConsoleHost  Name                           Value ----                           ----- PSVersion                      5.1.17763.503 PSEdition                      Desktop PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...} BuildVersion                   10.0.17763.503 CLRVersion                     4.0.30319.42000 WSManStackVersion              3.0 PSRemotingProtocolVersion      2.3 SerializationVersion           1.1.0.1