How can I determine what is hanging git on my OS X machine?

From man page:

‘-L’ ,‘--dereference’ - Follow symbolic links when copying from them. With this option, cp cannot create a symbolic link. For example, a symlink (to regular file) in the source tree will be copied to a regular file in the destination tree.

So this is the option you should try.


The other answers are good, but I would add that you should consider the amount of data in Environment B, and any contention with other queries.

Some SQL queries show no performance problems in isolation (e.g. 1000 rows in table, no other queries running) , but can be horror-show with 10,000,000 rows in table (e.g. parameter sniffing issues), and/or other queries potentially writing to, updating or locking the tables involved.

I agree with the other answers on checking hardware/environments/configurations match first, but if nothing obvious comes up, start looking at query execution plans, running SQL Profiler etc.


Charcoal, 96 bytes

F…¹X²N«F¬⁼KK#⊞υ⟦ⅉⅈ⟧##¿&ι⊗&ι±ι↷↶»↷≔⁰ζFυ«J⊟ι⊟ι≔¹ηW⬤ur⁼№KD⊗η✳λ#⊗η≦⊕ηFη¿κ«↗↗≧⁺⬤dl⁼№KD⊗κ✳λ#⊗κζ»»⎚Iζ

Try it online! Link is to verbose version of code. Explaantion:

F…¹X²N«

Loop over all the turns of the nᵗʰ iteration of the dragon.

F¬⁼KK#⊞υ⟦ⅉⅈ⟧

If we haven't visited this cell yet then record its position.

##

Print a segment of the dragon.

¿&ι⊗&ι±ι↷↶

Rotate appropriately for the next segment.

»↷

At the end of the dragon, rotate back to horizontal. (Clear() doesn't do this; maybe it should?)

≔⁰ζ

Start counting squares.

Fυ«J⊟ι⊟ι

Loop over and jump to each visited cell.

≔¹η

Start searching for squares.

W⬤ur⁼№KD⊗η✳λ#⊗η≦⊕η

While there are enough #s in both the upwards and rightwards directions increase the size of square being searched for.

Fη¿κ«

Check all sizes of squares from 1 to the largest potential size found.

↗↗≧⁺⬤dl⁼№KD⊗κ✳λ#⊗κζ

Move diagonally up and right two cells, then check downwards and leftwards for the other two sides of the square of this size and keep a running total of squares found.

»»⎚Iζ

Once all potential squares have been checked clear the canvas and output the final number found.

Tags:

Macos

Git