Cache text.size to improve performance for large strings
Add dirfiles/parallel.
Merge branch 'master' of github.com:hildeth/chapel
Change for_exprs_postorder so it stops when it reaches the passed-in expression.

The initial implementation of for_exprs_postorder did not contain a check to stop
iteration when the passed-in expression was reached, so iteration would continue up to the
root of the expression tree.  A check was added at the only place where for_exps_postorder
was used, to stop the iteration.  I moved the check inside the definition of
for_exprs_postorder, so it performs the iteration implied by its name.  This change should
not have any performance impact.

I also changed the signature of resolve_type_expression to return the resolved expression,
moving the error check from the end of that routine to its sole caller.  This positions
resolve_type_expression for use in other places in functionResolution, anticipating
changes introduced by user default constructor calls.
Revert "Add dirfiles/parallel."

This reverts commit 439da92647c3af300bf91dcab0e16856c3f27a55.
Fix a bug in replicateGlobalRecordWrappedVars().

The existing implementation of replicateGlobalRecordWrappedVars() was written so that it
would skip the first block of the module initialization function when looking for the
definition of a global record-wrapped variable.  I modified the function to also look in
the first block.

The old version worked because by accident all the definitions of interest lay in blocks
following the first.  However, as part of the implementation of calling user default
constructors, I moved the initialization code for variables closer to where the variables
are declared.  In some cases, this resulted in interesting initialization code ending up
in the first block.

The change also made the total allocated memory in shannon/printFinalMemStat.chpl go down
by 64 bytes in the no-local case.  So I updated the .good file for that test.
Revert "Add dirfiles/parallel."

This reverts commit 439da92647c3af300bf91dcab0e16856c3f27a55.
Adding first draft of glob and file iterator spec.
Reusing endpos to avoid another call to strlen
removing .log and .aux files
Merge pull request #108 from tzakian/glob_proposal

Adding first draft of glob and file iterator spec.
Merge pull request #107 from hildeth/fixReplicateGlobalWrappedRecordVars

Fix replicateGlobalWrappedRecordVars()



The existing implementation of replicateGlobalRecordWrappedVars() was written so that it
would skip the first block of the module initialization function when looking for the
definition of a global record-wrapped variable. I modified the function to also look in
the first block.

The old version worked because by accident all the definitions of interest lay in blocks
following the first. However, as part of the implementation of calling user default
constructors, I moved the initialization code for variables closer to where the variables
are declared. In some cases, this resulted in interesting initialization code ending up
in the first block.

The change also made the total allocated memory in shannon/printFinalMemStat.chpl go down
by 64 bytes in the no-local case. So I updated the .good file for that test.

[tested: / (std)]
[reviewed: noakes]
fixing .bad files for futures filed last Friday
Merge pull request #109 from tzakian/master

Fixing .bad files for futures filed last Friday
Merge pull request #99 from benharsh/regex

Regex: Cache string size to improve performance for large strings in matches iterator

In the regex-dna shootout, we need to count the number of matches in a very large string. With the current state of strings, calling text.size invokes strlen. Calling strlen on this very large string every time we look for a match is very slow. By caching the string's length, the performance of this iterator improves immensely.

Reviewed by sungeunchoi
Small clean-ups to Regexp module.

- use .length instead of .size on string to be consistent and simplify
  logic surrounding some of those calls

- fix regexp:error() to return a string (was returning a c_string)

- fix _cast() -- did not work in the non-local case (I suspect there
  is no test case for this)

- added note on stringPart regarding possible use of c_string
Merge branch 'master' of github.com:chapel-lang/chapel into test

Conflicts:
	modules/standard/Regexp.chpl
Merge pull request #106 from hildeth/stopForExprsPostorder

Stop iteration in for_exprs_postorder when it reaches the passed-in expression



The initial implementation of for_exprs_postorder did not contain a check to stop
iteration when the passed-in expression was reached, so iteration would continue up to the
root of the expression tree. A check was added at the only place where for_exps_postorder
was used, to stop the iteration. I moved the check inside the definition of
for_exprs_postorder, so it performs the iteration implied by its name. This change should
not have any performance impact.

I also changed the signature of resolve_type_expression to return the resolved expression,
moving the error check from the end of that routine to its sole caller. This positions
resolve_type_expression for use in other places in functionResolution, anticipating
changes introduced by user default constructor calls.

Both changes here will bring chapel-lang/master into closer alignment with my callDefaultConstructors branch, simplifying the merge.

[reviewer: noakes]

Mike noted that there using macros for procedural abstraction is somewhat undesirable, and I agree.  This is being committed as an intermediate solution: It should not be treated as definitive.
Merge pull request #110 from sungeunchoi/test

Small cleanups to Regexp module

[reviewed by Ben]

- Use string/c_string.length to be consistent throughout the file (it also reduces the work of function resolution and inlining slightly since .size calls .length and both are inlined)
- Simplify the stringPart specific logic surrounding the .length calls since now we use the same field name
- Comment a couple of places that seem like they needed stringPart logic but
- Add a comment for stringPart regarding the possible use of c_string rather than string
- Fix regexp:error() to return a string as the return type is specified (previously was returning c_string)
- Fix _cast() for multi-locale case (I suspect there is no test case for this)
A test goes through with full modules!