I would not have bothered with all the PORTX and PINX etc registers in the past if I knew its existence..
So I agree that a Knowledge database or wiki as said is the best way to go and is the fastest for the end-user when seeking a solution.. Or maybe something like "Teensy vs Arduino main difference FAQ" stating basic important differences like "DigitalWrite is there for compatibility reasons but we encourage you to use DigitalWriteFast instead"..
It's nice that Paul added those Fast read/write commands for the Teensy. Even on a 16-Mhz Arduino, there is a speedup difference of 5X or 10X in using the direct PORT/PIN syntax over digitalRead/Write. A lot of people have commented on the profound snailishness of the classical Arduino pin mapping, but they did it in order to create a standard usable over dozens of different processors, and so they could use a standard Header arrangement for same, and so people could design compatible shields and libraries conveniently. All in all, it was really a brilliant insight, I think. "convenience" is the crucial word.
For general compatibility, and for code that just "may" possibly run on both Arduino and Teensy 3.x, it's easier to use the Arduino syntax at least initially, and then go to the fast syntax where you really need it.
Of all the bizarre things, I've just been writing an ISR to run on a ATtiny84 for use as a coprocessor to a T3.5 [strange as it may seem], because I didn't want the T3.5 reading ADC channels continuously, and also being interrupted 100s of times per sec by another signal, and I used 2 sets of macros, as follows:
Code:
#define led1on() (PORTA |= 0x80) //PA7.
#define led1off() (PORTA &= 0x7F)
//#define led1on() { digitalWrite(3,HIGH); } //D3,PA7.
//#define led1off() { digitalWrite(3, LOW); }
I first used the lower ones for convenience during initial development, but then coded the upper ones after things settled down, and since they are used inside the ISR. So, like Kurt indicated, a 2-level coding approach can be both convenient, and also refined for speed.